import request from '@/utils/request'

// 获取动态科室列表
export function listDeptName() {
  return request({
    url: '/medical/registration/listDeptName',
    method: 'post',
  })
}

// 查询挂号信息管理列表
export function listRegistration(query) {
  return request({
    url: '/medical/registration/list',
    method: 'get',
    params: query
  })
}

// 查询挂号信息管理详细
export function getRegistration(id) {
  return request({
    url: '/medical/registration/' + id,
    method: 'get'
  })
}

// 新增挂号信息管理
export function addRegistration(data) {
  return request({
    url: '/medical/registration',
    method: 'post',
    data: data
  })
}

// 修改挂号信息管理
export function updateRegistration(data) {
  return request({
    url: '/medical/registration',
    method: 'put',
    data: data
  })
}

// 删除挂号信息管理
export function delRegistration(id) {
  return request({
    url: '/medical/registration/' + id,
    method: 'delete'
  })
}
